package com.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pumpkin
 * @since 2021-03-03
 */
@Data
@TableName("shares_code")
public class SharesCode extends Model<SharesCode> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 股票代码
     */
    private String code;
    /**
     * 股票名字
     */
    private String name;
    /**
     * 是否要查询
     */
    private Integer status;

    /**
     *
     * @return
     */
    private String szorsh;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SharesCode{" +
        ", id=" + id +
        ", code=" + code +
        ", name=" + name +
        ", status=" + status +
        "}";
    }
}
